package com.maodou.android.automator

import android.accessibilityservice.AccessibilityService
import android.view.KeyEvent
import android.view.accessibility.AccessibilityEvent

class AppAccessibilityService: AccessibilityService() {

    override fun onAccessibilityEvent(event: AccessibilityEvent?) {
//        AutomatorHelper.onAccessibilityEvent(event)
    }

    override fun onInterrupt() {

    }

    override fun onKeyEvent(event: KeyEvent?): Boolean {
        if(event != null){
//            return AutomatorHelper.getEventDispatcher().dispatchKeyEvent(event.keyCode, event) || super.onKeyEvent(event)
        }
        return super.onKeyEvent(event)
    }

    override fun onServiceConnected() {
//        AutomatorHelper.onServiceConnected(this)
        super.onServiceConnected()
    }

    override fun onDestroy() {
//        AutomatorHelper.onDestroy()
        super.onDestroy()
    }
}